package com.wowangz.cms.systemmanage.duty.service;

import java.util.HashMap;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.wowangz.cms.syscore.exception.ServiceException;
import com.wowangz.cms.syscore.service.BaseService;
import com.wowangz.cms.systemmanage.duty.pojo.DutyMenu;

public class DutyMenuService extends BaseService{
	
	private Logger logger = LoggerFactory.getLogger(DutyMenuService.class);

	public void add(DutyMenu dutyMenu) throws ServiceException{
		this.getSqlSession().insert("DutyMenu.insertDutyMenu", dutyMenu);
	}
	
	public List<DutyMenu> findDutyAgencyById(HashMap<String,Object> hashMap) throws ServiceException {
		List<DutyMenu> list = this.getSqlSession().selectList("DutyMenu.findDutyMenuById", hashMap);
		return list;
	}
	
	public void delete(DutyMenu dutyMenu) throws ServiceException{
		this.getSqlSession().delete("DutyMenu.deleteDutyMenu", dutyMenu);
	}
}
